﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using Marbles.CMS.Administrator;

namespace Marbles.CMS.ContentTypes
{
    public class ContentEditorBase : UserControl, IContentEditor
    {

        public string ContentID
        {
            get
            {
                string cid = Request.Params["cid"];
                if (string.IsNullOrEmpty(cid)) { return string.Empty; }
                return cid;
            }
        }
        public string Title
        {
            get
            {
            Admin pg = Page.Master as Admin;
            return pg.Title;
            }
            set {
                Admin pg = Page.Master as Admin;
                pg.Title = value; 
           }

        }
    }
}
